<template>
  <div class="img" v-if="maxShow!=null">
    <img style="z-index: -1" src="../../../assets/imgs/5.jpg" width="100%"/>
    <div class="imgText">
      <el-button round size="mini">全部博客</el-button></br>
      <el-link :underline="false">
        <h1 style="color: white">
<!--        Phasellus iaculis quam sed est elementum vel ornare ligula venenatis,-->
          {{maxShow.title}}
        </h1>
      </el-link>
      <div class="time">{{ maxShow.time }}</div>
    </div>
    <!--        <span class="demonstration">默认</span>-->
    <!--        <el-image :src="../../../assets/imgs/indeximg.JPG"></el-image>-->
  </div>
</template>

<script>
export default {
  name: "myIndexMaxshow",
  props: {
    maxShow: {
      type: Object,
      default() {
        return {}
      }
    }
  }
}
</script>

<style scoped>
.img{
  position: relative;
  margin: 10px 10px 10px 10px;
  width: 100%-20px;
}
.imgText{
  position: absolute;
  bottom: 10%;
  left: 5%;
}
.time{
  color: #fff;
  font-size: 13px;
  font-family: "Microsoft YaHei";
  margin: 0;
}
</style>